//
//  CountTableViewCell.m
//  Article
//
//  Created by 徐番茄丶 on 16/4/22.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "CountTableViewCell.h"
#import "MyTools.h"

@implementation CountTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self viewCreate];
    }
    return self;
}

-(void)viewCreate{
    //80
    _titleimage = [[UIImageView alloc]initWithFrame:CGRectMake(10, 5, (WIDTH - 20) / 4, 50)];
    [self addSubview:_titleimage];
    
    _looklab = [[UILabel alloc]initWithFrame:CGRectMake((WIDTH - 20) / 4 + 10, 10, (WIDTH - 20) / 4, 40)];
    _looklab.font = [UIFont fontWithName:@"Heiti SC" size:14 * MYWIDTH];
    _looklab.textColor = UIColorFromRGB(0x333333);
    _looklab.textAlignment = NSTextAlignmentCenter;
    [self addSubview:_looklab];
    
    _clicklab = [[UILabel alloc]initWithFrame:CGRectMake((WIDTH - 20) / 2 + 10, 10, (WIDTH - 20) / 4, 40)];
    _clicklab.font = [UIFont fontWithName:@"Heiti SC" size:14 * MYWIDTH];
    _clicklab.textColor = UIColorFromRGB(0x333333);
    _clicklab.textAlignment = NSTextAlignmentCenter;
    [self addSubview:_clicklab];
    
    
    _timelab = [[UILabel alloc]initWithFrame:CGRectMake((WIDTH - 20) / 4 * 3 + 10, 5, (WIDTH - 20) / 4, 50)];
    _timelab.font = [UIFont fontWithName:@"Heiti SC" size:14 * MYWIDTH];
    _timelab.textColor = UIColorFromRGB(0x333333);
    _timelab.textAlignment = NSTextAlignmentCenter;
    _timelab.numberOfLines = 2;
    [self addSubview:_timelab];
    
    UIView *lineview = [[UIView alloc]initWithFrame:CGRectMake(0, 59, WIDTH, 0.6)];
    lineview.backgroundColor = UIColorFromRGB(0xf2f2f2);
    [self addSubview:lineview];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
